var fs = require('fs');

var r = fs.createReadStream('a.txt');

var w = fs.createWriteStream('b.txt');

// pipe from read stream to wirte stream
r.pipe(w);

console.log('end');
